// @ts-nocheck
import Vue from 'vue';
import App from './App';
import router from './router/main';
// vuex
import store from './store/index.js';
import VueAwesomeSwiper from 'vue-awesome-swiper';
import './static/font/iconfont.js';

// require styles
import 'swiper/dist/css/swiper.css';

Vue.use(VueAwesomeSwiper /* { default global options } */);

// 移动端组件
import YDUI from 'vue-ydui';
import 'vue-ydui/dist/ydui.rem.css';
Vue.use(YDUI);
// 请求发送相关
import axios from './axiosrequest/http';
Vue.prototype.$get = axios.get;
Vue.prototype.$post = axios.post;

//moment 计算时间
import moment from 'moment';
moment.locale('zh-CN');
Vue.prototype.$moment = function(date) {
  return moment(date).fromNow();
};

// api请求接口
import api from './api/request_api.js';
Vue.prototype.$api = api;

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app');
